|
|
|
|
|
|
|
3. Place a check mark in the CalcGeneral check box, as shown in Figure 15.9. |
|
|
|
|
|
|
|
|
Figure 15.9
The checked Property Pages
will be attached to the control. |
|
|
|
|
|
|
|
|
4. Click OK in the Connect Property Pages dialog box to associate the selected pages with the Calculator control. |
|
|
|
|
|
|
|
|
Now you have completed the property sheet for the Calculator control. When you are working on an application that contains the control, you can set the control's properties from either the Properties window or the Property Pages. To test the sample Property Page, first close all the control project's designers. Next, open the form from the test project. Draw an instance of the Calculator control on the form, and open its Properties window by pressing F4. If you look closely, you'll notice a new property called Custom. |
|
|
|
|
|
|
|
|
To view the Property Page, double-click the Custom property, or click the ellipsis button. When you do, the property sheet appears, as shown in Figure 15.10. |
|
|
|
|
|
|
|
|
Figure 15.10
Here, you see the completed Property
Pages for the Calculator control. |
|
|
|
|
|
|
|
|
Notice that as soon as you change a control on a Property Page, the Apply button becomes enabled. |
|
|
|
|
|
|
|
|
|
Remember to save the changes you have made to the Calculator project. Notice that when you do save changes, Property Page files are stored with .PAG extensions.  |
|
|
|
|
|
|
|